package com.bit.bit_forum.dao;

import com.bit.bit_forum.model.Message;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MessageMapper {
    int insert(Message row);

    int insertSelective(Message row);

    Message selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Message row);

    int updateByPrimaryKey(Message row);

    //    查询登录用户 未读站内信的数量
    Integer selectUnReadCount(Long receiveUserId);
//    查询私信列表:
     List<Message> selectMessageList(Long userId);
}